<%@ page language="java" contentType="text/html; charset=UTF-8"	 pageEncoding="UTF-8"%>
<%@ include file="../include/laypublic.jsp"%>
<!DOCTYPE html>
<html>
<head>
</head>
  <title>项目信息</title>
  <style type="text/css">
	.layui-form-item {
	    margin-bottom: 5px;
	    clear: both;
	    *zoom: 1;
	}
	.layui-legend{
		background-color:#5fb878;
		font-size:15px !important;
		width:140px;
	}
	.fieldset{
		margin-top: 5px;
		margin-bottom: 0px
	}
	.layui-form-label{width: 180px;}
  </style>
</head>
<body>
  <div class="layui-fluid">   
    <div class="layui-card">
      <div class="layui-card-body">
        <!-- 数据表单 -->
        <div class="layui-tab layui-tab-brief" lay-filter="component-tabs-brief">
        	<ul class="layui-tab-title">
            	<li lay-id="base"><B>基础信息</B></li>
                <li <c:if test="${aimType == 2 }">class="layui-this"</c:if> lay-id="cap"><B>融资额</B></li>
                <li <c:if test="${aimType == 3 }">class="layui-this"</c:if> lay-id="invest"><B>投资额</B></li>
                <li <c:if test="${aimType == 4 }">class="layui-this"</c:if> lay-id="profit"><B>管理净利润</B></li>
                <%-- <li <c:if test="${aimType == 9 }">class="layui-this"</c:if> lay-id="cashin"><B>投资性现金流入</B></li>
                <li <c:if test="${aimType == 10 }">class="layui-this"</c:if> lay-id="cashout"><B>投资性现金流出</B></li> --%>
            </ul>
            <div class="layui-tab-content">
            	<div class="layui-tab-item">
        			<fieldset class="layui-elem-field layui-field-title fieldset"  id="baseInfo">
						  <legend class="layui-btn layui-legend" style="text-align:left;cursor:default;">项目基础信息  ></legend>
						  <div style="margin-top:20px">
						  	<div class="layui-form-item">
						  		<div class="layui-inline">
							      	<label class="layui-form-label">项目名称</label>
							      	<div class="layui-input-inline">
							        	<input type="text" name="proName" value="${proContract.proName }" style="border:0px;" readonly="readonly" class="layui-input">
							      	</div>
							    </div>
						  		<div class="layui-inline">
							      	<label class="layui-form-label">项目编号</label>
							      	<div class="layui-input-inline">
							        	<input type="text" name="proCode" value="${proContract.proCode }" style="border:0px;" readonly="readonly" class="layui-input">
							      	</div>
							    </div>
						  		<div class="layui-inline">
							      	<label class="layui-form-label">实施机构</label>
							      	<div class="layui-input-inline">
						        		<input type="text" value="${proContract.carryOrg }" style="border:0px;" readonly="readonly" class="layui-input">
							      	</div>
							    </div>
						    </div>
						  	<div class="layui-form-item">
							    <div class="layui-inline">
							    	<label class="layui-form-label">区域公司</label>
						      		<div class="layui-input-inline">
						        		<input type="text" value="${proContract.orgAreaName }" style="border:0px;" readonly="readonly" class="layui-input">
						      		</div>
							    </div>
						  		<div class="layui-inline">
							    	<label class="layui-form-label">项目负责人</label>
						      		<div class="layui-input-inline">
						        		<input type="text" value="${proContract.proLeader }" style="border:0px;" readonly="readonly" class="layui-input">
						      		</div>
							    </div>
						  		<div class="layui-inline">
							    	<label class="layui-form-label">项目地址</label>
						      		<div class="layui-input-inline">
						        		<input type="text" value="${proContract.sgCityName }" style="border:0px;" readonly="readonly" class="layui-input">
						      		</div>
							    </div>
						    </div>
						  	<div class="layui-form-item">
							    <div class="layui-inline">
							    	<label class="layui-form-label">业态</label>
						      		<div class="layui-input-inline">
							        	<input type="text" value="<infopub:dicLable value="${proContract.bizType}" type="dic" groupNo="A00010069"></infopub:dicLable>" style="border:0px;" readonly="readonly" class="layui-input">
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">计价方式</label>
						      		<div class="layui-input-inline">
							        	<input type="text" value="<infopub:dicLable value="${proContract.valueMode}" type="dic" groupNo="A00010070"></infopub:dicLable>" style="border:0px;" readonly="readonly" class="layui-input">
						      		</div>
							    </div>
						  		<div class="layui-inline">
							    	<label class="layui-form-label">是否入库</label>
						      		<div class="layui-input-inline">
						      			<c:if test="${proContract.isInStore == '1' }"><input type="text" value="已入库" style="border:0px;" readonly="readonly" class="layui-input"></c:if>
						      			<c:if test="${proContract.isInStore == '0' }"><input type="text" value="未入库" style="border:0px;color:red" readonly="readonly" class="layui-input"></c:if>
						      		</div>
							    </div>
				    		</div>
						  	<div class="layui-form-item">
						  		<div class="layui-inline">
							      	<label class="layui-form-label">回报机制 &nbsp;&nbsp;</label>
						      		<div class="layui-input-inline">
						      			<c:set value="${fn:split(proContract.backMech, ',') }" var="backMechArr"/>
							      		<c:if test="${fn:length(backMechArr) == 0}">
							      			<c:choose><c:when test="${fn:contains(proContract.backMech, '1')}" >政府付费</c:when><c:when test="${fn:contains(proContract.backMech, '2')}" >可行性缺口补助</c:when> <c:when test="${fn:contains(proContract.backMech, '3')}" >使用者付费</c:when></c:choose>
							      		</c:if>
						      			<c:forEach items="${backMechArr}" var="backMech" varStatus="vs">
							      			<c:if test="${fn:length(backMechArr) == 1}">
								                <c:if test="${backMech == '1'}"><c:set value="政府付费" var="backMechName"/></c:if>
								                <c:if test="${backMech == '2'}"><c:set value="可行性缺口补助" var="backMechName"/></c:if>
								                <c:if test="${backMech == '3'}"><c:set value="使用者付费" var="backMechName"/></c:if>
							                </c:if>
							      			<c:if test="${fn:length(backMechArr) > 1}">
								                <c:if test="${vs.count == 1}">
									                <c:if test="${backMech == '1'}"><c:set value="政府付费" var="backMechName"/></c:if>
									                <c:if test="${backMech == '2'}"><c:set value="可行性缺口补助" var="backMechName"/></c:if>
								                </c:if>
								                <c:if test="${vs.count == 2}">
									                <c:if test="${backMech == '2'}"><c:set value="${backMechName}，可行性缺口补助" var="backMechName"/></c:if>
									                <c:if test="${backMech == '3'}"><c:set value="${backMechName}，使用者付费" var="backMechName"/></c:if>
								                </c:if>
							                </c:if>
							            </c:forEach>
							      		<input type="text" value="${backMechName }" style="border:0px;" readonly="readonly" class="layui-input">
						      		</div>
					    		</div>
						  		<div class="layui-inline">
							    	<label class="layui-form-label">对外合同签订日期</label>
						      		<div class="layui-input-inline">
							        	<input class="layui-input" value="<fmt:formatDate value="${proContract.signDate }" pattern="yyyy-MM-dd"/>" readonly="readonly" style="border:0px;" />
						      		</div>
							    </div>
				    		</div>
				    		<div class="layui-form-item">
						  		<div class="layui-inline">
							    	<label class="layui-form-label">合同建设期（年）</label>
						      		<div class="layui-input-inline">
							        	<input class="layui-input" value="${proContract.buildYears }" readonly="readonly" style="border:0px;" />
						      		</div>
							    </div>
						  		<div class="layui-inline">
							    	<label class="layui-form-label">合同运营期（年）</label>
						      		<div class="layui-input-inline">
							        	<input class="layui-input" value="${proContract.omYears }" readonly="readonly" style="border:0px;" />
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">总合同期（年）</label>
						      		<div class="layui-input-inline">
							        	<input class="layui-input" value="${proContract.totalYears }" readonly="readonly" style="border:0px;" />
						      		</div>
							    </div>
							</div>
						  	<div class="layui-form-item">
						  		<div class="layui-inline">
							    	<label class="layui-form-label">合同建设期（天）</label>
						      		<div class="layui-input-inline">
							        	<input class="layui-input" value="${proContract.buildDays }" readonly="readonly" style="border:0px;" />
						      		</div>
							    </div>
						  		<div class="layui-inline">
							    	<label class="layui-form-label">合同运营期（天）</label>
						      		<div class="layui-input-inline">
							        	<input class="layui-input" value="${proContract.omDays }" readonly="readonly" style="border:0px;" />
						      		</div>
							    </div>
						  		<div class="layui-inline">
							    	<label class="layui-form-label">总合同期（天）</label>
						      		<div class="layui-input-inline">
							        	<input class="layui-input" value="${proContract.totalDays }" readonly="readonly" style="border:0px;" />
						      		</div>
							    </div>
				    		</div>
						  	<div class="layui-form-item">
						  		<div class="layui-inline">
							    	<label class="layui-form-label">增补后建设期</label>
						      		<div class="layui-input-inline">
							        	<input class="layui-input" value="${contractExt.buildYears }" readonly="readonly" style="border:0px;" />
						      		</div>
							    </div>
						  		<div class="layui-inline">
							    	<label class="layui-form-label">对外合同开工日期</label>
						      		<div class="layui-input-inline">
							        	<input class="layui-input" value="<fmt:formatDate value="${proContract.beginBuildDate }" pattern="yyyy-MM-dd"/>" readonly="readonly" style="border:0px;" />
						      		</div>
							    </div>
						  		<div class="layui-inline">
							    	<label class="layui-form-label">对外合同竣工日期</label>
						      		<div class="layui-input-inline">
							        	<input class="layui-input" value="<fmt:formatDate value="${proContract.endCaeDate }" pattern="yyyy-MM-dd"/>" readonly="readonly" style="border:0px;" />
						      		</div>
							    </div>
				    		</div>
						  	<div class="layui-form-item">
							    <div class="layui-inline">
							    	<label class="layui-form-label">对外合同实际开工日期</label>
						      		<div class="layui-input-inline">
							        	<input class="layui-input" value="" readonly="readonly" style="border:0px;" />
						      		</div>
							    </div>
						  		<div class="layui-inline">
							    	<label class="layui-form-label">已使用建设期</label>
						      		<div class="layui-input-inline">
							        	<input class="layui-input" value="" readonly="readonly" style="border:0px;" />
						      		</div>
							    </div>
						  		<div class="layui-inline">
							    	<label class="layui-form-label">剩余建设期</label>
						      		<div class="layui-input-inline">
							        	<input class="layui-input" value="" readonly="readonly" style="border:0px;" />
						      		</div>
							    </div>
				    		</div>
				    		<div class="layui-form-item">
						  		<div class="layui-inline">
							    	<label class="layui-form-label">实际竣工日期</label>
						      		<div class="layui-input-inline">
							        	<input class="layui-input" value="" readonly="readonly" style="border:0px;" />
						      		</div>
							    </div>
						  		<div class="layui-inline">
							    	<label class="layui-form-label">实际工期</label>
						      		<div class="layui-input-inline">
							        	<input class="layui-input" value="" readonly="readonly" style="border:0px;" />
						      		</div>
							    </div>
						  		<div class="layui-inline">
							    	<label class="layui-form-label">已运营年数</label>
						      		<div class="layui-input-inline">
							        	<input class="layui-input" value="" readonly="readonly" style="border:0px;" />
						      		</div>
							    </div>
				    		</div>
				    		<div class="layui-form-item">
						  		<div class="layui-inline">
							    	<label class="layui-form-label">剩余运营年数</label>
						      		<div class="layui-input-inline">
							        	<input class="layui-input" value="" readonly="readonly" style="border:0px;" />
						      		</div>
							    </div>
				    		</div>
				  		</div>
					</fieldset>
					<fieldset class="layui-elem-field layui-field-title fieldset"  id="careerInfo">
				  		<legend class="layui-btn layui-legend" style="text-align:left;cursor:default;">合同投资  ></legend>
					  	<div style="margin-top:20px">
					  		<div class="layui-form-item" style="margin: 0 20px;">
					  		<table class="layui-table layuiadmin-page-table" lay-skin="line">
				                  <thead>
				                    <tr>
				                      <th>序号</th>
				                      <th>名称</th>
				                      <th>金额（元）</th>
				                    </tr> 
				                  </thead>
				                  <tbody>
				                    <tr>
				                      <td>1</td>
				                      <td>1. 建安工程费</td>
				                      <td>${contractExtInvest.caeFee }</td>
				                    </tr>
				                    <tr>
				                      <td>2</td>
				                      <td>&nbsp;&nbsp;&nbsp;&nbsp;建安下浮率（综合）</td>
				                      <td>${contractExtInvest.caeDownRate }</td>
				                    </tr>
				                    <tr>
				                      <td>3</td>
				                      <td>&nbsp;&nbsp;&nbsp;&nbsp;建安占比</td>
				                      <td>${contractExtInvest.caeRate }</td>
				                    </tr>
				                    <tr>
				                      <td>4</td>
				                      <td>2. 预备费</td>
				                      <td>${contractExtInvest.prepareFee }</td>
				                    </tr>
				                    <tr>
				                      <td>5</td>
				                      <td>3. 建设工程其他费</td>
				                      <td>${contractExtInvest.buildOtherFee }</td>
				                    </tr>
				                    <tr>
				                      <td>6</td>
				                      <td>&nbsp;&nbsp;3.1 建设单位管理费</td>
				                      <td>${contractExtInvest.buildOrgFee }</td>
				                    </tr>
				                    <tr>
				                      <td>7</td>
				                      <td>&nbsp;&nbsp;3.2 政府代付费</td>
				                      <td>${contractExtInvest.gdReplaceFee }</td>
				                    </tr>
				                    <tr>
				                      <td>8</td>
				                      <td>&nbsp;&nbsp;3.3 项目前期费</td>
				                      <td>${contractExtInvest.preFee }</td>
				                    </tr>
				                    <tr>
				                      <td>9</td>
				                      <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.3.1 征地拆迁费</td>
				                      <td>${contractExtInvest.moveFee }</td>
				                    </tr>
				                    <tr>
				                      <td>10</td>
				                      <td>4. 建设期利息</td>
				                      <td>${contractExtInvest.buildInterest }</td>
				                    </tr>
				                    <tr>
				                      <td>11</td>
				                      <td>5. 设备及工器具购置</td>
				                      <td>${contractExtInvest.buyFee }</td>
				                    </tr>
				                    <tr>
				                      <td>12</td>
				                      <td>6. 铺底流动资金</td>
				                      <td>${contractExtInvest.flowFee }</td>
				                    </tr>
				                    <tr>
				                      <td></td>
				                      <td>合计</td>
				                      <td>${contractExtInvest.totalSum }</td>
				                    </tr>
		                    	  </tbody>
			                    </table>
		                    </div>
						</div>
					</fieldset>
					<fieldset class="layui-elem-field layui-field-title fieldset"  id="creditInfo">
				  		<legend class="layui-btn layui-legend" style="text-align:left;cursor:default;">商务指标  ></legend>
					  	<div style="margin-top:20px">
					  		<div class="layui-form-item">
							    <div class="layui-inline">
							    	<label class="layui-form-label">银行融资资金（元）</label>
						      		<div class="layui-input-inline">
							      		<input value="${proContract.bankFund }" readonly="readonly" class="layui-input" style="border:0px;" />
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">占比（%）</label>
						      		<div class="layui-input-inline">
							      		<input value="${proContract.bankFundPercent }" readonly="readonly" class="layui-input" style="border:0px;" />
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">银行融资回报率（%）</label>
						      		<div class="layui-input-inline">
							      		<input value="${proContract.bankBackRate }" readonly="readonly" class="layui-input" style="border:0px;" />
						      		</div>
							    </div>
						    </div>
					  		<div class="layui-form-item">
							    <div class="layui-inline">
							    	<label class="layui-form-label">自有资本金（元）</label>
						      		<div class="layui-input-inline">
							      		<input value="${proContract.selfFund }" readonly="readonly" class="layui-input" style="border:0px;" />
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">占比（%）</label>
						      		<div class="layui-input-inline">
							      		<input value="${proContract.selfFundPercent }" readonly="readonly" class="layui-input" style="border:0px;" />
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">自有资金回报率（%）</label>
						      		<div class="layui-input-inline">
							      		<input value="${proContract.selfBackRate }" readonly="readonly" class="layui-input" style="border:0px;" />
						      		</div>
							    </div>
						    </div>
					  		<div class="layui-form-item">
							    <div class="layui-inline">
							    	<label class="layui-form-label">政府资本金（元）</label>
						      		<div class="layui-input-inline">
							      		<input value="${proContract.gdFund }" readonly="readonly" class="layui-input" style="border:0px;" />
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">占比（%）</label>
						      		<div class="layui-input-inline">
							      		<input value="${proContract.gdFundPercent }" readonly="readonly" class="layui-input" style="border:0px;" />
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">建设期融资利率（%）</label>
						      		<div class="layui-input-inline">
							      		<input value="${proContract.buildCapRate }" readonly="readonly" class="layui-input" style="border:0px;" />
						      		</div>
							    </div>
						    </div>
					  		<div class="layui-form-item">
							    <div class="layui-inline">
							    	<label class="layui-form-label">年运营绩效服务费（元）</label>
						      		<div class="layui-input-inline">
							      		<input value="${proContract.perOmFee }" readonly="readonly" class="layui-input" style="border:0px;" />
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">年兜底运营收入（元）</label>
						      		<div class="layui-input-inline">
							      		<input value="${proContract.perBottomOmIncome }" readonly="readonly" class="layui-input" style="border:0px;" />
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">年兜底运营成本（元）</label>
						      		<div class="layui-input-inline">
							      		<input value="${proContract.perBottomOmCost }" readonly="readonly" class="layui-input" style="border:0px;" />
						      		</div>
							    </div>
						    </div>
					  		<div class="layui-form-item">
							    <div class="layui-inline">
							    	<label class="layui-form-label">折现率（%）</label>
						      		<div class="layui-input-inline">
							      		<input value="${proContract.cashRate }" readonly="readonly" class="layui-input" style="border:0px;" />
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">投资回报率（%）</label>
						      		<div class="layui-input-inline">
							      		<input value="${proContract.investBackRate }" readonly="readonly" class="layui-input" style="border:0px;" />
						      		</div>
							    </div>
						    </div>
					  	</div>
					</fieldset>
					<fieldset class="layui-elem-field layui-field-title fieldset"  id="creditInfo">
				  		<legend class="layui-btn layui-legend" style="text-align:left;cursor:default;">公式信息  ></legend>
					  	<div style="margin-top:20px">
					  		<div class="layui-form-item" style="margin: 0 20px;">
					  		<table class="layui-table layuiadmin-page-table" lay-skin="line">
				                  <thead>
				                    <tr>
				                      <th>名称</th>
				                      <th>公式</th>
				                      <th>参数详细说明</th>
				                    </tr> 
				                  </thead>
			                  	  <tbody>
					                    <tr>
					                      <td>可用性服务费计算公式</td>
					                      <td><c:forEach items="${proContractUlas}" var="ula"><c:if test="${ula.formulaType == '1' }">${ula.formulaMemo }</c:if></c:forEach></td>
					                      <td><c:forEach items="${proContractUlas}" var="ula"><c:if test="${ula.formulaType == '1' }">${ula.paraMemo }</c:if></c:forEach></td>
					                    </tr>
					                    <tr>
					                      <td>政策处理费计算公式</td>
					                      <td><c:forEach items="${proContractUlas}" var="ula"><c:if test="${ula.formulaType == '2' }">${ula.formulaMemo }</c:if></c:forEach></td>
					                      <td><c:forEach items="${proContractUlas}" var="ula"><c:if test="${ula.formulaType == '2' }">${ula.paraMemo }</c:if></c:forEach></td>
					                    </tr>
					                    <tr>
					                      <td>使用者服务费计算公式</td>
					                      <td><c:forEach items="${proContractUlas}" var="ula"><c:if test="${ula.formulaType == '3' }">${ula.formulaMemo }</c:if></c:forEach></td>
					                      <td><c:forEach items="${proContractUlas}" var="ula"><c:if test="${ula.formulaType == '3' }">${ula.paraMemo }</c:if></c:forEach></td>
					                    </tr>
					                    <tr>
					                      <td>可行性缺口补助计算公式</td>
					                      <td><c:forEach items="${proContractUlas}" var="ula"><c:if test="${ula.formulaType == '4' }">${ula.formulaMemo }</c:if></c:forEach></td>
					                      <td><c:forEach items="${proContractUlas}" var="ula"><c:if test="${ula.formulaType == '4' }">${ula.paraMemo }</c:if></c:forEach></td>
					                    </tr>
					                    <tr>
					                      <td>运营维护费计算公式</td>
					                      <td><c:forEach items="${proContractUlas}" var="ula"><c:if test="${ula.formulaType == '5' }">${ula.formulaMemo }</c:if></c:forEach></td>
					                      <td><c:forEach items="${proContractUlas}" var="ula"><c:if test="${ula.formulaType == '5' }">${ula.paraMemo }</c:if></c:forEach></td>
					                    </tr>
					                    <tr>
					                      <td>一次性支付</td>
					                      <td><c:forEach items="${proContractUlas}" var="ula"><c:if test="${ula.formulaType == '6' }">${ula.formulaMemo }</c:if></c:forEach></td>
					                      <td><c:forEach items="${proContractUlas}" var="ula"><c:if test="${ula.formulaType == '6' }">${ula.paraMemo }</c:if></c:forEach></td>
					                    </tr>
			                      </tbody>
			                    </table>
		                    </div>
		                 </div>
					</fieldset>
					<fieldset class="layui-elem-field layui-field-title fieldset"  id="creditInfo">
				  		<legend class="layui-btn layui-legend" style="text-align:left;cursor:default;">其他信息  ></legend>
					  	<div style="margin-top:20px">
					  		<div class="layui-form-item">
							    <div class="layui-inline">
							    	<label class="layui-form-label">创效金额（元）</label>
						      		<div class="layui-input-inline">
							      		<input value="${effectSure.monthActAmount }" readonly="readonly" class="layui-input" style="border:0px;" />
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">其中：建设期二三次经营利润（元）</label>
						      		<div class="layui-input-inline">
							      		<input value="${effectSure.shouldRiskAmount }" readonly="readonly" class="layui-input" style="border:0px;" />
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">其中：针对运维期银行利率倒挂及自有资金利息亏损的经营利润（元）</label>
						      		<div class="layui-input-inline">
							      		<input value="${effectSure.manageProfit }" readonly="readonly" class="layui-input" style="border:0px;" />
						      		</div>
							    </div>
						    </div>
					  		<div class="layui-form-item">
							    <div class="layui-inline">
							    	<label class="layui-form-label">应缴风险抵押金金额（元）</label>
						      		<div class="layui-input-inline">
							      		<input value="${effectSure.shouldRiskAmount }" readonly="readonly" class="layui-input" style="border:0px;" />
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">已缴风险抵押金金额（元）</label>
						      		<div class="layui-input-inline">
							      		<input value="${effectSure.actRiskAmount }" readonly="readonly" class="layui-input" style="border:0px;" />
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">已缴纳比例（%）</label>
						      		<div class="layui-input-inline">
							      		<input value="${effectSure.actRiskRate }" readonly="readonly" class="layui-input" style="border:0px;" />
						      		</div>
							    </div>
						    </div>
					  		<div class="layui-form-item">
					  			<div class="layui-inline">
							    	<label class="layui-form-label">小微是否签订</label>
						      		<div class="layui-input-inline">
							      		<input value="<c:if test="${not empty effectSure }">${effectSure.signFlag == 1 ? '是':'否' }</c:if>" readonly="readonly" class="layui-input" style="border:0px;" />
						      		</div>
							    </div>
						    </div>
					  	</div>
					</fieldset>
					<!-- 二期显示
					<fieldset class="layui-elem-field layui-field-title fieldset" >
				  		<legend class="layui-btn layui-legend" style="text-align:left;cursor:default;">档案附件  ></legend>
					  	<div style="margin-top:20px;">
						    <div class="layui-form-item">
							    <label class="layui-form-label">投标类文件</label>
							    <div class="layui-input-inline">
							    	<a href="javascript:void(0)" >查看</a>
							    	<a href="javascript:void(0)" >下载</a>
							    </div>
							 </div>
						    <div class="layui-form-item">
							    <label class="layui-form-label">立项类文件</label>
							    <div class="layui-input-inline">
							    	<a href="javascript:void(0)" >查看</a>
							    	<a href="javascript:void(0)" >下载</a>
							    </div>
							 </div>
						    <div class="layui-form-item">
							    <label class="layui-form-label">实施	类文件</label>
							    <div class="layui-input-inline">
							    	<a href="javascript:void(0)" >查看</a>
							    	<a href="javascript:void(0)" >下载</a>
							    </div>
							 </div>
						    <div class="layui-form-item">
							    <label class="layui-form-label">结算类文件</label>
							    <div class="layui-input-inline">
							    	<a href="javascript:void(0)" >查看</a>
							    	<a href="javascript:void(0)" >下载</a>
							    </div>
							 </div>
						</div>
					</fieldset> -->
                </div>
                <div class="layui-tab-item <c:if test="${aimType == 2 }">layui-show</c:if>">
                	<div class="layui-form-item" >
				  		<div class="layui-inline" style="width:48%">
					      	<label class="layui-form-label">项目名称</label>
					      	<div class="layui-input-inline">
					        	<input type="text" value="${proContract.proName }" title="${proContract.proName }" style="border:0px;width:300px;" readonly="readonly" class="layui-input">
					      	</div>
					    </div>
				  		<div class="layui-inline" style="width:48%">
					      	<label class="layui-form-label">融资总额（万元）</label>
					      	<div class="layui-input-inline">
					        	<input type="text" value="${capTotal }" style="border:0px;" readonly="readonly" class="layui-input">
					      	</div>
					    </div>
				    </div>
                    <table id="LAY-cap-manage" lay-filter="LAY-cap-manage"></table>
                </div>
                <div class="layui-tab-item <c:if test="${aimType == 3 }">layui-show</c:if>">
                	<div class="layui-form-item">
				  		<div class="layui-inline" style="width:48%">
					      	<label class="layui-form-label">项目名称</label>
					      	<div class="layui-input-inline">
					        	<input type="text" value="${proContract.proName }" title="${proContract.proName }" style="border:0px;width:300px;" readonly="readonly" class="layui-input">
					      	</div>
					    </div>
				  		<div class="layui-inline" style="width:48%">
					      	<label class="layui-form-label">投资额（万元）</label>
					      	<div class="layui-input-inline">
					        	<input type="text" value="${investTotal }" style="border:0px;" readonly="readonly" class="layui-input">
					      	</div>
					    </div>
				    </div>
                    <table id="LAY-invest-manage" lay-filter="LAY-invest-manage"></table>
                </div>
                <div class="layui-tab-item <c:if test="${aimType == 4 }">layui-show</c:if>">
                	<div class="layui-form-item">
				  		<div class="layui-inline" style="width:48%">
					      	<label class="layui-form-label">项目名称</label>
					      	<div class="layui-input-inline">
					        	<input type="text" value="${proContract.proName }" title="${proContract.proName }" style="border:0px;width:300px;" readonly="readonly" class="layui-input">
					      	</div>
					    </div>
				  		<div class="layui-inline" style="width:48%">
					      	<label class="layui-form-label">管理净利润（万元）</label>
					      	<div class="layui-input-inline">
					        	<input type="text" value="${profitTotal }" style="border:0px;" readonly="readonly" class="layui-input">
					      	</div>
					    </div>
				    </div>
                    <table id="LAY-profit-manage" lay-filter="LAY-profit-manage"></table>
                </div>
                <div class="layui-tab-item <c:if test="${aimType == 9 }">layui-show</c:if>">
                	<div class="layui-form-item">
				  		<div class="layui-inline">
					      	<label class="layui-form-label">项目名称</label>
					      	<div class="layui-input-inline">
					        	<input type="text" value="${proContract.proName }" style="border:0px;" readonly="readonly" class="layui-input">
					      	</div>
					    </div>
				  		<div class="layui-inline">
					      	<label class="layui-form-label">投资性现金流入（万元）</label>
					      	<div class="layui-input-inline">
					        	<input type="text" value="${cashinTotal }" style="border:0px;" readonly="readonly" class="layui-input">
					      	</div>
					    </div>
				    </div>
                    <table id="LAY-cashin-manage" lay-filter="LAY-cashin-manage"></table>
                </div>
                <div class="layui-tab-item <c:if test="${aimType == 10 }">layui-show</c:if>">
                	<div class="layui-form-item">
				  		<div class="layui-inline">
					      	<label class="layui-form-label">项目名称</label>
					      	<div class="layui-input-inline">
					        	<input type="text" value="${proContract.proName }" style="border:0px;" readonly="readonly" class="layui-input">
					      	</div>
					    </div>
				  		<div class="layui-inline">
					      	<label class="layui-form-label">投资性现金流出（万元）</label>
					      	<div class="layui-input-inline">
					        	<input type="text" value="${cashoutTotal }" style="border:0px;" readonly="readonly" class="layui-input">
					      	</div>
					    </div>
				    </div>
                    <table id="LAY-cashout-manage" lay-filter="LAY-cashout-manage"></table>
                </div>
            </div>
        </div>
	  	
      </div>
    </div>
  </div>

  <script>
  	layui.config({
    	base: '${ctx}/resources/layuiadmin/' //静态资源所在路径
  	}).extend({
    	index: 'lib/index' //主入口模块
  	}).use(['index', 'table', 'set'], function(){
    	var $ = layui.$
    	,form = layui.form
    	,table = layui.table
    	,element = layui.element;
    	//tab重新渲染宽度
    	element.on('tab(component-tabs-brief)', function(obj){
    		$(window).resize();
    	});
    	
    	// 融资额表单
    	table.render({
      		elem: '#LAY-cap-manage'
      		,url: basePath + '/qaConsole/queryCapDataByCondition' //请求数据接口
      		,where: {'proCode':'${proCode}'}
      		,cols: [[
        		{type:'numbers', title: '序号'}
        		,{field: 'loanDate', title: '放款日期', templet: function(d){
	        		  	return layui.util.toDateString(d.loanDate,"yyyy-MM-dd");
	              	}
        		}
        		,{field: 'loadType', title: '贷款品种', templet: function(d){
        				if(d.loadType == '1'){
        					return '项目贷款';
        				}else if(d.loadType == '2'){
        					return '流贷';
        				}else if(d.loadType == '3'){
        					return '银行承兑汇票';
        				}else if(d.loadType == '9'){
        					return '其他';
        				}
	              	}
        		}
        		,{field: 'bankName', title: '银行名称'}
        		,{field: 'loanRatio', title: '放款比例（%）'}
        		,{field: 'loanInterestRate', title: '放款利率（%）'}
        		,{field: 'loanAmount', title: '放款金额（万元）',templet: function(d){
					    return formatCurrency(d.loanAmount);
					}
        		}
      			]]
      		,page: true
      		,limit: 10
    	});
    	
    	// 投资额表单
    	table.render({
      		elem: '#LAY-invest-manage'
      		,url: basePath + '/qaConsole/queryInvestDataByCondition' //请求数据接口
      		,where: {'proCode':'${proCode}'}
      		,cols: [[
        		{type:'numbers', title: '序号'}
        		,{field: 'stsMonth', title: '月份', templet: function(d){
	        		  	return layui.util.toDateString(d.stsMonth,"yyyy-MM");
	              	}
        		}
        		,{field: 'totalSumTts', title: '投资额（万元）',templet: function(d){
					    return formatCurrency(d.totalSumTts);
					}
        		}
        		,{field: 'outCaeSureTts', title: '对外建安产值确权（万元）',templet: function(d){
					    return formatCurrency(d.outCaeSureTts);
					}
        		}
        		,{field: 'gdPayFeeTts', title: '政府代付费（万元）',templet: function(d){
					    return formatCurrency(d.gdPayFeeTts);
					}
        		}
        		,{field: 'proPreFeeTts', title: '项目前期费（万元）',templet: function(d){
					    return formatCurrency(d.proPreFeeTts);
					}
        		}
        		,{field: 'finBizInterestTts', title: '融资业务付息（万元）',templet: function(d){
					    return formatCurrency(d.finBizInterestTts);
					}
        		}
        		,{field: 'finBizFeeTts', title: '融资业务付费（万元）',templet: function(d){
					    return formatCurrency(d.finBizFeeTts);
					}
        		}
      			]]
      		,page: true
      		,limit: 10
    	});
    	
    	// 管理净利润表单
    	table.render({
      		elem: '#LAY-profit-manage'
      		,url: basePath + '/qaConsole/queryProfitDataByCondition' //请求数据接口
      		,where: {'proCode':'${proCode}'}
      		,cols: [[
        		{type:'numbers', title: '序号',fixed:'left'}
        		,{field: 'stsMonth', title: '确认月份',fixed:'left', templet: function(d){
	        		  	return layui.util.toDateString(d.stsMonth,"yyyy-MM");
	              	}
        		}
        		,{field: 'caeGrossProfitTts', title: '建安毛利（万元）',templet: function(d){
					    return formatCurrency(d.caeGrossProfitTts);
					}
        		}
        		,{field: 'effectFeeTts', title: '创效金额（万元）',templet: function(d){
					    return formatCurrency(d.effectFeeTts);
					}
        		}
        		,{field: 'finSpreadTts', title: '融资息差（万元）',templet: function(d){
					    return formatCurrency(d.finSpreadTts);
					}
        		}
        		,{field: 'manageFeeTts', title: '管理费用（万元）',templet: function(d){
					    return formatCurrency(d.manageFeeTts);
					}
        		}
        		,{field: 'fiaFeeTts', title: '财务费用（万元）',templet: function(d){
					    return formatCurrency(d.fiaFeeTts);
					}
        		}
        		,{field: 'taxFeeTts', title: '税金（万元）',templet: function(d){
					    return formatCurrency(d.taxFeeTts);
					}
        		}
        		,{field: 'totalSumTts', title: '管理净利润（万元）',templet: function(d){
					    return formatCurrency(d.totalSumTts);
					}
        		}
      			]]
      		,page: true
      		,limit: 10
    	});
    	
    	// 投资性现金流入表单
    	table.render({
      		elem: '#LAY-cashin-manage'
      		,url: basePath + '/qaConsole/queryCashinDataByCondition' //请求数据接口
      		,where: {'proCode':'${proCode}'}
      		,cols: [[
        		{type:'numbers', title: '序号',fixed:'left'}
        		,{field: 'stsMonth', title: '确认月份',fixed:'left', templet: function(d){
	        		  	return layui.util.toDateString(d.stsMonth,"yyyy-MM");
	              	}
        		}
        		,{field: 'specialFundTts', title: '项目专项基金（万元）',templet: function(d){
					    return formatCurrency(d.specialFundTts);
					}
        		}
        		,{field: 'gdSubsidyTts', title: '政府补贴（万元）',templet: function(d){
					    return formatCurrency(d.gdSubsidyTts);
					}
        		}
        		,{field: 'buyBackFeeTts', title: '回购款（万元）',templet: function(d){
					    return formatCurrency(d.buyBackFeeTts);
					}
        		}
        		,{field: 'totalSumTts', title: '投资性现金流入（万元）',templet: function(d){
					    return formatCurrency(d.totalSumTts);
					}
        		}
      			]]
      		,page: true
      		,limit: 10
    	});
    	
    	// 投资性现金流出表单
    	table.render({
      		elem: '#LAY-cashout-manage'
      		,url: basePath + '/qaConsole/queryCashoutDataByCondition' //请求数据接口
      		,where: {'proCode':'${proCode}'}
      		,cols: [[
        		{type:'numbers', title: '序号',fixed:'left'}
        		,{field: 'stsMonth', title: '确认月份',fixed:'left', templet: function(d){
	        		  	return layui.util.toDateString(d.stsMonth,"yyyy-MM");
	              	}
        		}
        		,{field: 'inTotalPackTts', title: '内部总包款（万元）',templet: function(d){
					    return formatCurrency(d.inTotalPackTts);
					}
        		}
        		,{field: 'outTotalPackTts', title: '外部总包款（万元）',templet: function(d){
					    return formatCurrency(d.outTotalPackTts);
					}
        		}
        		,{field: 'subPackTts', title: '专业分包款（万元）',templet: function(d){
					    return formatCurrency(d.subPackTts);
					}
        		}
        		,{field: 'deviceBuyFeeTts', title: '专业设备采购款（万元）',templet: function(d){
					    return formatCurrency(d.deviceBuyFeeTts);
					}
        		}
        		,{field: 'gdPayFeeTts', title: '政府代付费（万元）',templet: function(d){
					    return formatCurrency(d.gdPayFeeTts);
					}
        		}
        		,{field: 'proPreFeeTts', title: '项目前期费（万元）',templet: function(d){
					    return formatCurrency(d.proPreFeeTts);
					}
        		}
        		,{field: 'totalSumTts', title: '投资性现金流出（万元）',templet: function(d){
					    return formatCurrency(d.totalSumTts);
					}
        		}
      			]]
      		,page: true
      		,limit: 10
    	});
    
	    // data-type事件
	    $('.layui-btn.layuiadmin-btn-admin').on('click', function(){
	      var type = $(this).data('type');
	      active[type] ? active[type].call(this) : '';
	    });
  });
  	
  </script>
</body>
</html>

